<?php

namespace App\Kits\Middleware;

use App\Kits\Errors\NotAuthException;
use Illuminate\Http\Request;

class ProductMiddleware
{
    public function handle(Request $request, callable $next)
    {
        if (!config('app.debug')) {
            throw new NotAuthException();
        }
        return $next($request);
    }
}
